<?php
/**
 * Created by PhpStorm.
 * User: Zhoujinda
 * Date: 2016/3/29
 * Time: 16:30
 */

namespace app\index\domain;

use app\index\domain\BaseDomain;
use app\bbs\api\ForumUserAdmingroupApi;

class BbsAdminOperDomain extends BaseDomain{
    protected $business_code = 'BbsAdminOper';
    /**
     * 禁言
     */
    public function banUser(){

        $this->checkVersion($this->api_ver);
        addLog("BbsAdminOper/banUser",$_GET,$_POST,"应用" . $this->client_id . "调用关小黑屋接口");

        $admin_uid = $this->_post('admin_uid','','管理人员ID缺失');
        $uid       = $this->_post('uid','','用户ID缺失');
        $banned    = $this->_post('ban_value','30');//分钟

        $result = apiCall(ForumUserAdmingroupApi::BAN_USER,array($admin_uid,$uid,$banned));

        if($result['status']){
            $this->apiReturnSuc($result['info']);
        }else{
            $this->apiReturnErr($result['info']);
        }

    }

}